package com.edu.exam.enums.examination.paper;

/**
 * 异常类别枚举
 *
 * 从ProcessingException实体类中提取的独立枚举
 *
 * @author System
 * @version 1.0.0
 */
public enum ExceptionCategory {
    SYSTEM("系统异常"),
    BUSINESS("业务异常"),
    DATA("数据异常"),
    NETWORK("网络异常"),
    IO("IO异常"),
    CONFIGURATION("配置异常"),
    VALIDATION("验证异常"),
    SECURITY("安全异常"),
    PERFORMANCE("性能异常"),
    INTEGRATION("集成异常");

    private final String description;

    ExceptionCategory(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    /**
     * 获取显示名称（中文）
     *
     * @return 中文显示名称
     */
    public String getDisplayName() {
        return description;
    }
}